package com.yantong.mapper;

import com.yantong.pojo.YfzWithdrawals;
import org.apache.ibatis.session.RowBounds;

import java.util.List;
import java.util.Map;

public interface YfzWithdrawalsMapper {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Long id);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(YfzWithdrawals record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(YfzWithdrawals record);

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    YfzWithdrawals selectByPrimaryKey(Long id);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(YfzWithdrawals record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(YfzWithdrawals record);

    int totalByParams(Map<String, Object> params);

    List<YfzWithdrawals> listByParams(Map<String, Object> params, RowBounds rowBounds);
}